<?php


namespace app\admin\services\task;

use app\admin\model\AliYunSmsModel;
use app\admin\model\PatrolShopWarning;
use app\admin\model\ShopCheckWorkWarning;

class CronSmsService
{

    //分流不同的类型
    public function execute_task($type=1)
    {
        switch ($type){
            case 1:  // 发送考勤预警短信记录
                $model=new ShopCheckWorkWarning();
                $model->shop_check_work_warning();
                break;
            case 2:  //  发送巡店预警短信记录
                $model=new PatrolShopWarning();
                $model->patrol_shop_warning();
                break;
            default:
                return true;
        }
    }
}